package com.API;

import java.math.BigDecimal;

public class day04 {
    public static void main(String[] args) {
        BigDecimal db1 = new BigDecimal("10");
        BigDecimal db2 = new BigDecimal("3");
        //进一法:BigDecimal.ROUND_UP
        //进尾法:BigDecimal.ROUND_FLOOR
        //四舍五入法:BigDecimal.ROUND_HALF_UP
        BigDecimal divide = db1.divide(db2, 2, BigDecimal.ROUND_UNNECESSARY);
        System.out.println(divide);
    }
}
